﻿using System.Collections.Generic;
using BLWCMS.Core.Models;

namespace BLWCMS.Core.IBusiness
{
    public interface IMaterialBusiness
    {
        /// <summary>
        /// 添加素材
        /// </summary>
        /// <param name="materialModel"></param>
        /// <returns></returns>
        string Add(MaterialModel materialModel);

        /// <summary>
        /// 编辑素材
        /// </summary>
        /// <param name="materialModel"></param>
        /// <returns></returns>
        string Edit(MaterialModel materialModel);

        /// <summary>
        /// 删除素材
        /// </summary>
        /// <param name="mid"></param>
        /// <returns></returns>
        string Del(int mid);

        /// <summary>
        /// 获取列表
        /// </summary>
        /// <returns></returns>
        List<MaterialModel> GetList();

        /// <summary>
        /// 获取模型
        /// </summary>
        /// <param name="mid"></param>
        /// <returns></returns>
        MaterialModel GetModel(int mid);
    }
}
